import { stringify } from 'qs';
import request from '../utils/request';

/*利用json-server数据*/
export async function count() {
  //查数字数据
  return request('http://localhost:3000/count', {
    method: 'GET',
  });
}
export async function series() {
  //查折线图数据数据
  return request('http://localhost:3000/series', {
    method: 'GET',
  });
}
export async function text() {
  //查折线图数据数据
  return request('http://localhost:3000/text', {
    method: 'GET',
  });
}
export async function data() {
  //表格数据
  return request('http://localhost:3000/data', {
    method: 'GET',
  });
}
